package com.yxinsur.imc.business.mapper;

import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yxinsur.imc.business.domain.ImcAssessment;
import com.yxinsur.imc.business.form.AssessmentForm;
import com.yxinsur.imc.business.vo.AssessmentVo;
import org.apache.ibatis.annotations.Param;

/**
 * 考核主Mapper接口
 * 
 * @author imc
 * @date 2021-06-10
 */
public interface ImcAssessmentMapper extends BaseMapper<ImcAssessment>
{
    /**
     * 查询考核主
     * 
     * @param id 考核主ID
     * @return 考核主
     */
    public ImcAssessment selectImcAssessmentById(String id);

    /**
     * 查询考核主列表
     * 
     * @param assessmentForm 考核主
     * @return 考核主集合
     */
    public List<AssessmentVo> selectImcAssessmentList(@Param("param")AssessmentForm assessmentForm,@Param("tenantId") Long tenantId);

    /**
     * 新增考核主
     * 
     * @param imcAssessment 考核主
     * @return 结果
     */
    public int insertImcAssessment(ImcAssessment imcAssessment);

    /**
     * 修改考核主
     * 
     * @param imcAssessment 考核主
     * @return 结果
     */
    public int updateImcAssessment(ImcAssessment imcAssessment);

    /**
     * 删除考核主
     * 
     * @param id 考核主ID
     * @return 结果
     */
    public int deleteImcAssessmentById(String id);

    /**
     * 批量删除考核主
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteImcAssessmentByIds(Long[] ids);
}
